import json
from config import BASE_PATH


def read_json_data(filename):
    with open(filename, "r", encoding="utf8") as f:
        json_data = json.load(f)
        json_list = []
        for data in json_data:
            val = data.values()
            tmp = tuple(val)
            json_list.append(tmp)
        return json_list


# 自测
if __name__ == '__main__':
    filename = BASE_PATH+"/data/zy_add_emp.json"
    ret = read_json_data(filename)
    print(ret)